﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ePlanet.Entities;

namespace FilesUpload
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
            this.dataGridView1.AutoGenerateColumns = false;
        }

        public IList<EntityIdAndTypeRelateAttachFilePath> Entities
        {
            get
            {
                List<EntityIdAndTypeRelateAttachFilePath> items = new List<EntityIdAndTypeRelateAttachFilePath>();
                foreach (DataGridViewRow row in this.dataGridView1.Rows)
                {
                    EntityIdAndTypeRelateAttachFilePath item = row.DataBoundItem as EntityIdAndTypeRelateAttachFilePath;
                }
                return items;
            }
            set
            {
                this.dataGridView1.DataSource = value;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
